<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:a="http://richfaces.org/a4j"
    template="/layout/templateMini.xhtml">
 
    <ui:define name="body">
	 <a:loadScript src="/script/jquery-1.6.2.js"/>
     <a:loadScript src="/script/jquery.meio.mask.js"/>
        <h:form>
        
        <table  class="mainIndex" align="left">
        
      		
		        	
		        
						<tr  class="imgdata" >
								
			 		
							<td class="teste" width="210" height="100" align="left" valign="top">
							<h:messages id="messages" style="text-align:left;color:#fb0000;" globalOnly="true" styleClass="message"
			            		errorClass="errormsg" infoClass="infomsg" warnClass="warnmsg"
			            		rendered="#{showGlobalMessages != 'false'}"/>
			            		
								<h:outputText styleClass="labelfull" id="empreendimentoLabel" value="Empreendimento: " />
								<br />
								<h:selectOneMenu required="true" id="empreendimentoInput" value="#{empreendimento.codigo}" >
									<s:selectItems itemValue="#{obj.codigo}" value="#{listaEmpreendimento}" var="obj" label="#{obj.nome}" noSelectionLabel="Selecione"/>
								</h:selectOneMenu>
								<br />
								<h:message for="empreendimentoInput" style="font-size:10px; color:#fb0000"/>
								<br />
								
									<h:outputText styleClass="labelfull" id="LabelunidadeEmpreendimento" value="Unidade do Empreendimento: " />
								<h:inputText value="#{gerarRelatorioAction.unidadeEmpreendimento}" id="unidadeEmpreendimento" required="true" maxlength="30"/>
								<br />
								<h:message for="unidadeEmpreendimento" style="font-size:10px; color:#fb0000"/>
								<br/>
								<h:outputText styleClass="labelfull" value="Valor da Venda: " style="text-align:left !important;" />
								<br />
								<h:inputText  value="#{gerarRelatorioAction.valorVenda}" id="valor" alt="decimal" >
									<rich:jQuery  selector="#valor" query="setMask({})"
				                			timing="onload" />
				                </h:inputText>
								<br/>
								<br/>
							
								
								
								<h:outputText styleClass="labelfull" value="Sinal de Venda: " /><br/>
								<h:inputText id="sinalVendaInput" value="#{gerarRelatorioAction.sinalVenda}" alt="decimal" >
									<rich:jQuery  selector="#sinalVendaInput" query="setMask({})"
				                			timing="onload" />
								</h:inputText>
								<br/>
								<br/>
								<h:outputText styleClass="labelfull" id="creciCorretorLabel" value="Creci corretor: " /><br/>
								<h:inputText value="#{corretor.creci}" id="creciCorretorInput" required="true" maxlength="10" disabled="#{corretor.bloquearCampoCreci}"/>
								<br />
								<br/>
								<h:outputText styleClass="labelfull" id="primeiraVendaLabel" value="Primeira venda? " />
								<h:selectBooleanCheckbox id="primeiraVenda"  value="#{corretor.primeiraVenda}"  />
								<br/>
								<br/>
								<h:message for="creciCorretorInput" style="font-size:10px; color:#fb0000"/>
								<br/>
								<br/>
								<h:commandButton value="Gerar Arquivo PDF" action="#{gerarRelatorioAction.gerarRateio()}" />
								<br />
								<br />
								
							</td>
							
							
									
						</tr>
						
					
						
					</table>
						
						
						
						
						
							
					
						
				
			
			
			
	    
   
	</h:form>

    </ui:define>
</ui:composition>
